Linux gzip, gunzip, and linuxgzipgunzipIntroduction
Gzip is a linux built-in compressed file command. Its compression ratio is about 60%-70%, which is higher than that of zip. Use gzipzip to add the. GZ suffix after the file and delete the source
For those who are new to Linux, they will surely be confused by a large number of packages and compressed files in Linux. We know that in Windows, the most common compressed files are in rar and zip formats and the currently emerging 7z format. It
Yum Install Zip gzip (--Install the compression tool)gzip commandThe gzip command is used to compress files. Gzip is a widely used compression program, after which the file is compressed, and its name is followed by a number of ". Gz"
Gzip compresses the original file and deletes the original fileThe-D decompression option is similar to Gunzip-# specifies that the compression ratio is 6 by default-C outputs the compressed content to the standard output and retains the original
Tar: create an archive file [Syntax] tar [option] tarfilefilename [command description] the file name must be followed by the-f parameter and
Tar
[Syntax] tar [option] tarfile filename
[Command description]
The file name must be followed by the-f
Tar
[Syntax] tar [option] tarfile filename
[Command description]
The file name must be followed by the-f parameter and used as the last parameter;
[Parameter description]
-C. Create a new archive file;
-F specifies the file name;
-R: append an
The gzip command is used to compress files. Gzip is a widely used compression program, after which the file is compressed, and its name is followed by a number of ". Gz" extensions.Gzip not only compresses large, less-used files to conserve disk
For those who have just come in contact with Linux, it will certainly give Linux a lot of different file names to get dizzy. Let's just say, in the case of compressed files, we know that there are only two types of compressed files that are most
. TarUnpack: Tar xvf filename.tarPackage: Tar CVF filename.tar dirname(Note: tar is packed, not compressed !)---------------. GZDecompress 1: gunzip filename.gzDecompress 2: gzip-D filename.gzCompression: gzip filename.Tar.gz and. tgzDecompress: Tar
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.